package com.erp.erp_dao.DictionaryKey;

import com.erp.erp_entitys.DictionaryKey.DictionaryKeyEntity;
import com.erp.erp_entitys.DictionaryKey.DictionaryKeyEntityExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface IDictionaryKeyDAO {
    long countByExample(DictionaryKeyEntityExample example);

    int deleteByExample(DictionaryKeyEntityExample example);

    int deleteByPrimaryKey(Integer code);

    int insert(DictionaryKeyEntity record);

    int insertSelective(DictionaryKeyEntity record);

    List<DictionaryKeyEntity> selectByExample(DictionaryKeyEntityExample example);

    DictionaryKeyEntity selectByPrimaryKey(Integer code);

    int updateByExampleSelective(@Param("record") DictionaryKeyEntity record, @Param("example") DictionaryKeyEntityExample example);

    int updateByExample(@Param("record") DictionaryKeyEntity record, @Param("example") DictionaryKeyEntityExample example);

    int updateByPrimaryKeySelective(DictionaryKeyEntity record);

    int updateByPrimaryKey(DictionaryKeyEntity record);
    List<DictionaryKeyEntity> selectKeyByParent(int code);
    String selectCodesByParent(int code);
}